//
//  NetWorkTools.swift
//  DSWeibo
//
//  Created by J on 16/4/16.
//  Copyright © 2016年 J. All rights reserved.
//

import UIKit
import AFNetworking
class NetWorkTools: AFHTTPSessionManager {

    
    static let tools : NetWorkTools = {
        let url = NSURL(string:"https://api.weibo.com/")
        let t = NetWorkTools(baseURL: url)
        t.responseSerializer.acceptableContentTypes = (NSSet(objects: "application/json", "text/json", "text/javascript","text/plain") as! Set<String>)
        return t
    }()
    
    
    class func shareNetWorkTools()->NetWorkTools{
        
        return tools
        
    }
    
}
